console.log("shareCreateChromePlugin start");
// 判断是否有存在id如果存在则不创建，直接接管
console.log("创建更节点------------------");
const body = document.body;
const appNode = document.createElement("div");
appNode.setAttribute("id", "share-creater-chrome-plugin");
body.appendChild(appNode);
import componentsBase from "@/components-base";

import store from '@/store'

import ElementUI from "element-ui";
import "@/styles/theme-chalk/index.css";
import "@/styles/chrome-content/index.scss";

import Vue from "vue";
import App from "../views/Content/index.vue";
import utilEventBus from "../utils/eventBus";
import i18n from "@/lang"; // internationalization
import "@/icons"; // icon
import "@/styles/index.scss"; // global css
import '@/icons/iconfonts/iconfont.css'

Vue.use(ElementUI, {
  size: "medium", // set element-ui default size
  i18n: (key, value) => i18n.t(key, value)
});
Vue.prototype.$EventBus = utilEventBus;
Vue.config.productionTip = false;
//注册ui组件
Vue.use(componentsBase);

setTimeout(() => {
  new Vue({
    render: h => h(App),
    store,
    i18n,
  }).$mount("#share-creater-chrome-plugin");
}, 200);
